{"version":3,"sources":["auto-font-scale-entry.js"],"names":["BX","namespace","createRangeFromNode","Landing","Utils","isNumber","rect","UI","Tool","autoFontScaleEntry","element","this","minSize","maxSize","parseInt","style","maxLetterSpacing","parseFloat","minLetterSpacing","paddings","changed","prototype","setFontSize","size","Math","min","max","setProperty","setLetterSpacing","value","resetSize","adjust","getRangeWidth","getParentWidth","fontSize","getFontSizeRatio","letterSpacing","getLetterSpacingRatio","width","window","getBaseFontSizeRatio","getCurrentSize","ratio","letterSpacingRatio","baseFontSizeRatio"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,sBAEb,IAAIC,EAAsBF,GAAGG,QAAQC,MAAMF,oBAC3C,IAAIG,EAAWL,GAAGG,QAAQC,MAAMC,SAChC,IAAIC,EAAON,GAAGG,QAAQC,MAAME,KAO5BN,GAAGG,QAAQI,GAAGC,KAAKC,mBAAqB,SAASC,GAEhDC,KAAKD,QAAUA,EACfC,KAAKC,QAAU,EACfD,KAAKE,QAAUC,SAASd,GAAGe,MAAML,EAAS,cAC1CC,KAAKK,iBAAmBC,WAAWjB,GAAGe,MAAML,EAAS,mBACrDC,KAAKK,iBAAmBX,EAASM,KAAKK,kBAAoBL,KAAKK,iBAAmB,EAClFL,KAAKO,iBAAmB,EACxBP,KAAKQ,SAAW,GAChBR,KAAKS,QAAU,OAIhBpB,GAAGG,QAAQI,GAAGC,KAAKC,mBAAmBY,WAKrCC,YAAa,SAASC,GAErBA,EAAOC,KAAKC,IAAID,KAAKE,IAAIH,EAAMZ,KAAKC,SAAUD,KAAKE,SACnDF,KAAKD,QAAQK,MAAMY,YAAY,YAAaJ,EAAO,KAAM,cAQ1DK,iBAAkB,SAASC,GAE1BA,EAAQL,KAAKC,IAAID,KAAKE,IAAIG,EAAOlB,KAAKO,kBAAmBP,KAAKK,kBAC9DL,KAAKD,QAAQK,MAAMY,YAAY,gBAAiBE,EAAQ,OAOzDC,UAAW,WAEVnB,KAAKD,QAAQK,MAAMY,YAAY,WAAY,MAC3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